package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Suplementy extends DziennikMainActivity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_suplementy);
        
        
        
        final Button button_mrbig = (Button) findViewById(R.id.buttonMRbig);
 		button_mrbig.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "Suplementy/MRbig"; //Data you want to send        
 				Intent intent = new Intent(Suplementy.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 	   final Button button_vitalmax = (Button) findViewById(R.id.buttonVitalmax);
 	 		button_vitalmax.setOnClickListener(new View.OnClickListener() {
 	 			public void onClick(View v) {

 	 				String str = "Suplementy/Vitalmax"; //Data you want to send        
 	 				Intent intent = new Intent(Suplementy.this, TabelaProdukty.class);
 	 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 	 				v.getContext().startActivity(intent);
 	 				
 	 			}
 	 			
 	 		});
        
	}
}
